<template>
  <div class="base_config_form">
    <el-form
      :model="formdata"
      ref="bcForm"
      label-position="top"
    >
      <el-row :gutter="10">
        <el-col :span="24">
          <div class="grid_tit">检查预约登记页面配置</div>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="影像区域过滤">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.depArea"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="查询申请单的时候'影像区域'选择框是否显示" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="院区过滤">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.areaName"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="查询申请单的时候'院区'选择框是否显示" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="设备类型过滤">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.modalityType"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="查询申请单的时候'设备类型'选择框是否显示" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="申请科室过滤">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isShowApplyDepart"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="查询申请单的时候'申请科室'选择框是否显示" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="病区过滤">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isShowWardNo"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="查询申请单和已预约列表的时候'病区'选择框是否显示,还有右上角头像菜单的用户权限中是否可绑定已预约列表筛选框里的病区条件" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="已取消过滤">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.cancelType"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="查询申请单的时候'已取消'选择框是否显示" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="已取消条件过滤是否开启">
            <el-switch
              v-model="formdata.appointedType"
              active-color="#13ce66"
              inactive-color="#ff4949"
              active-text="是"
              inactive-text="否">
            </el-switch>
          </el-form-item>
        </el-col> -->
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="手动登记按钮是否隐藏">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isHideGreenCheck"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="检查预约登记页面下方的'手动登记Tab切换按钮'是否隐藏" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="手动登记按钮开启权限配置">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isGreenCheckAddAuth"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="开启后,需要在一体化系统里配置权限代码:YJYY10008039,绑定到相应角色上后即可生效" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="设置按钮是否显示">
            <el-switch
              v-model="formdata.checkConfigBtnShow"
              active-color="#13ce66"
              inactive-color="#ff4949"
              active-text="是"
              inactive-text="否">
            </el-switch>
          </el-form-item>
        </el-col> -->
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="住院-已退单过滤">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.returned"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="患者类型为住院的时候,是否显示已退单复选框" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="住院-未登记过滤">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.unregistered"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="患者类型为住院的时候,是否显示未登记复选框" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="formdata.unregistered">
          <el-form-item label="住院-默认勾选未登记">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isUnregistered"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="患者类型为住院的时候,是否自动勾选未登记复选框" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="住院-床号排序">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isBedNoSort"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="患者类型为住院的时候,是否自动根据床号排序" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="PID是否替换成MPI">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.mpi"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="获取PID的时候,是否从mpi字段中获取" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="筛选条件默认选中PID">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.IS_TRIGGER_PATIENTID"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="该开关打开后,申请单查询页面无论怎么选择患者类型,都会自动切换到PID来进行查询" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="自动打印号码单次数">
            <el-input-number v-model="formdata.printAutoNum" controls-position="right" :min="0" :max="10000000000" style="width: 100%;"></el-input-number>
          </el-form-item>
        </el-col> -->
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="体检-下拉菜单添加体检号查询">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.tijianShow"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="检查预约登记页面和已预约列表新增体检号选项" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col> -->
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="体检号与门诊号合并">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.stestIDMergeOutID"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="对于有些医院,如果体检号可以通过门诊号来查询,可开启合并" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="体检-默认选中体检号">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.tijianTotijianhao"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="患者类型为体检条件下是否默认选中体检号" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="体检-实时刷新">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isShowApplyListRefresh"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="患者类型为体检条件下是否显示实时刷新选项,勾选实时刷新后,会开启实时刷新的功能" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="实时刷新的时间间隔" v-if="formdata.isShowApplyListRefresh">
            <div class="flex flex-row align-center">
              <el-input-number size="mini" v-model="formdata.applyListRefreshTime" @change="changeRefreshTime" :min="9" :max="61" label="时间间隔请在10~60之间"></el-input-number>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="设置按钮开启权限配置">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isOpenAuthInSetBtn"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="检查预约登记页面右下脚的设置按钮是否配置权限,若开启后,需要在一体化系统里配置权限代码:YJYY10008041" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="关闭申请单与用户权限的联动">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isCloseHisAndConfigLink"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="申请单查询页面筛选框里的值是否与右上角头像点开里的用户权限配置里的缓存之间互相联动" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="患者类型的联动">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.patTypeLink"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="申请单查询页面的患者类型是否和已预约列表页面的患者类型联动" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="门诊不取缓存">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isSetStorageAreaName"
                @change="changeIsSetStorageAreaName"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="患者类型为门诊的时候，院区筛选框里的值不走缓存" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="保存配置时关闭自动刷新浏览器">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isCloseAutoRefreshOnSaveAppConfig"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="检查预约登记页面的下方配置按钮点开后,设置好新的配置信息后点保存,是否要关闭刷新浏览器来立刻重新加载新配置的接口数据的功能(一般配置出现问题,技术调试的时候要关闭自动刷新浏览器的功能,医院里无需配置这个开关)" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="申请单查询配置">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isShowTwoList"
                @change="changeIsShowTwoList"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="查询申请单的时候是否同时先去查询已预约列表,该配置是本地缓存,不同电脑之间需单独设置" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="切换患者类型不清空输入框">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isClearQueryText"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="切换患者类型的时候,是否不清空输入框里的数据" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="申请单急诊时限显示">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isShowEmergencyTag"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="申请单急诊时限的显示" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="手工登记-选择his记录">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isShowApplyCheck"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="手工登记页面的姓名输入框里是否显示放大镜按钮,点击按钮出来弹窗来查询患者的历史申请单记录,并可点击选择患者信息" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="手工登记-两癌判断">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isChangeFeeType"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="手工登记添加两癌判断以收费状态" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="检查部门开启多选">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isChooseDeps"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="申请单查询时检查部门筛选框是否开启多选的功能" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="患者类型默认选中全部">
            <el-switch
              v-model="formdata.hisIsSelectAll"
              active-color="#13ce66"
              inactive-color="#ff4949"
              active-text="是"
              inactive-text="否">
            </el-switch>
            <el-tooltip class="item" effect="dark" content="进入检查预约登记页面的时候,患者类型是否默认选中全部" placement="top-start">
              <i class="el-icon-question mar-l-10"></i>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="手工登记-临床诊断和病史必填">
            <el-switch
              v-model="formdata.isRequiredItems"
              active-color="#13ce66"
              inactive-color="#ff4949"
              active-text="是"
              inactive-text="否">
            </el-switch>
            <el-tooltip class="item" effect="dark" content="手工登记页面处的临床诊断和病史是否为必填项" placement="top-start">
              <i class="el-icon-question mar-l-10"></i>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="手工登记-门诊默认选中">
            <el-switch
              v-model="formdata.isChooseAppointed"
              active-color="#13ce66"
              inactive-color="#ff4949"
              active-text="是"
              inactive-text="否">
            </el-switch>
            <el-tooltip class="item" effect="dark" content="设置后，门诊默认选中" placement="top-start">
              <i class="el-icon-question mar-l-10"></i>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="手工登记-新增门诊/住院号">
            <el-switch
              v-model="formdata.isAddInOutPatient"
              active-color="#13ce66"
              inactive-color="#ff4949"
              active-text="是"
              inactive-text="否">
            </el-switch>
            <el-tooltip class="item" effect="dark" content="新增门诊/住院号输入框" placement="top-start">
              <i class="el-icon-question mar-l-10"></i>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="是否显示主诉字段">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isShowChiefComplaint"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
            </div>
          </el-form-item>
        </el-col> -->
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="申请单详情取消弹窗显示">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.applyInfoCancelUseDialog"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="检查预约页面的申请单详情是否取消使用弹窗显示" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col> -->
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="查某人时的默认时间范围">
            <div class="flex flex-row align-center">
              <el-input-number v-model="formdata.defHisDay" @change="changeDefaultSearchHisData" size="mini" :min="0" :max="3651" label="默认查询时间1~3650天"></el-input-number>
              <el-tooltip class="item" effect="dark" content="查询某个人申请单的时候,所默认查询的时间范围,单位天" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="申请单列表条数上限">
            <div class="flex flex-row align-center">
              <el-input-number v-model="formdata.listLimit" size="mini" :min="500" :max="5000" :step="100" label="推荐填写500~800"></el-input-number>
              <el-tooltip class="item" effect="dark" content="查询申请单的时候,最多显示多少条,根据性能考虑,建议最多显示500~800条,对于谷歌32位的,超过1000条就很容易使浏览器奔溃" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="申请单列表截取方式">
            <el-switch
              v-model="formdata.numSpliceIsFront"
              active-color="#13ce66"
              inactive-color="#ff4949"
              active-text="前"
              inactive-text="后">
            </el-switch>
            <el-tooltip class="item" effect="dark" content="取HIS那边所返回的申请单列表的前面数据还是后面数据" placement="top-start">
              <i class="el-icon-question mar-l-10"></i>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="不自动查询申请单列表">
            <div class="flex flex-row align-center">
              <el-select size="mini" v-model="formdata.unSearchAutoPatientSource" multiple clearable collapse-tags style="width: 100%;">
                <el-option
                  v-for="(pt, index) in patientSourceOptions"
                  :key="index"
                  :value="pt.value"
                  :label="pt.label"
                ></el-option>
              </el-select>
              <el-tooltip class="item" effect="dark" content="刚进入预约登记页面或切换患者类型的时候,申请单列表数据是否不自动查询" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="预约完自动跳转到签到页">
            <div class="flex flex-row align-center">
              <el-select size="mini" v-model="formdata.unSearchAutoPatientSource" multiple clearable collapse-tags style="width: 100%;">
                <el-option
                  v-for="(pt, index) in patientSourceOptions"
                  :key="index"
                  :value="pt.value"
                  :label="pt.label"
                ></el-option>
              </el-select>
              <el-tooltip class="item" effect="dark" content="刚进入预约登记页面或切换患者类型的时候,申请单列表数据是否不自动查询" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col> -->
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="不显示虚拟机房列表">
            <div class="flex flex-row align-center">
              <el-select size="mini" v-model="formdata.unShowVirtualRoom" multiple clearable collapse-tags style="width: 100%;">
                <el-option
                  v-for="(pt, index) in virtualRoomOptions"
                  :key="index"
                  :value="pt.value"
                  :label="pt.label"
                ></el-option>
              </el-select>
              <el-tooltip class="item" effect="dark" content="号源管理页面，虚拟机房下拉列表中哪些不显示" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="申请科室代码过滤(取反)">
            <div class="flex flex-row align-center">
              <el-input
                v-model="formdata.applyDepartmentCodeFilterArr"
                placeholder="若有多个,用'-'号隔开"
                size="mini"
                clearable
                autocomplete="off">
                <template slot="append">
                  <el-tooltip class="item" effect="dark" content="根据申请科室代码过滤申请单列表,只显示不包含这些申请科室代码的申请单,若有多个,用'-'号隔开" placement="top-start">
                    <i class="el-icon-question mar-l-3"></i>
                  </el-tooltip>
                </template>
              </el-input>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="执行科室代码过滤(取包含)">
            <div class="flex flex-row align-center">
              <el-input
                type="textarea"
                v-model="formdata.eExeDepCodeFilArr"
                placeholder="若有多个,用'-'号隔开"
                size="mini"
                clearable
                autocomplete="off">
              </el-input>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="是否胶片打印权限">
            <el-switch
              v-model="formdata.isToPrint"
              active-color="#13ce66"
              inactive-color="#ff4949"
              active-text="是"
              inactive-text="否">
            </el-switch>
            <el-tooltip class="item" effect="dark" content="手工登记和信息单是否开启打印权限" placement="top-start">
              <i class="el-icon-question mar-l-10"></i>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <div class="grid_tit" style="margin-top:20px">预约记录修改页面配置</div>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="!isHiddenPrintSet">
          <el-form-item label="是否进行样式升级">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isStyleUpdate"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="已预约列表按钮等颜色是否升级简化" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="!isHiddenPrintSet">
          <el-form-item label="是否将筛选条件升级">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isFilterMerge"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="已预约列表筛选框是否升级为可以自由切换筛选条件" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="!isHiddenPrintSet">
          <el-form-item label="支持导出为Excel">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.exportToExcel"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="已预约列表数据是否支持导出为Excel的开关" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="!isHiddenPrintSet">
          <el-form-item label="给编辑按钮配置权限">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isAddAuthInEdit"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="编辑已预约列表数据的按钮,是否已开启权限配置,若开启,需要在一体化系统里配置权限代码:YJYY20000001,设置成功后方可生效" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="不自动查询已预约列表">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.listCloseAutoSearch"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="刚进入预约记录修改页面的时候,已预约列表数据是否不自动查询" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="支持纸质申请单">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.applyCheckFileSHow"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="申请单保存需要调用电脑摄像头或使用拍摄仪,若域名未加密,则需要在谷歌浏览器中配置安全地址,配置步骤以及教程:https://blog.csdn.net/qq_17355709/article/details/137498450" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
            <!-- https://blog.csdn.net/qq_17355709/article/details/137498450 -->
          </el-form-item>
        </el-col>
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="增加病区条件">
            <el-switch
              v-model="formdata.isShowWardNo"
              active-color="#13ce66"
              inactive-color="#ff4949"
              active-text="是"
              inactive-text="否">
            </el-switch>
          </el-form-item>
        </el-col> -->
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="显示记住选择按钮">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isShowRememberSelectBtn"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="开启后,已预约列表页面所选择的筛选条件可设置是否保存在本地" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="检查状态支持多选">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isSelectMoreCheckStatus"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="检查状态筛选框是否开启多选的功能" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col> -->
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="检查部门智能赋值开关">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isGetHisDeps"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="检查部门所选值是否和申请单查询页面联动" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="查询时间默认为今天">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.SOURCEINDEX_TODAY"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="查询数据的时候,所查询的时间范围默认为今天" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="列表可排序">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isSortInfo"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
            </div>
          </el-form-item>
        </el-col>
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="改约时修改患者信息可任意修改部位">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isChangeCheckPos"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
            </div>
          </el-form-item>
        </el-col> -->
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="未收费数据是否添加中间横线">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isLineThrough"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="注意：住院未收费不存在横线提示" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="患者类型颜色同步申请单设置">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.patTypeToAppointed"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="注意：设置后his申请单中患者类型颜色将引用到已预约列表当中" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="已预约列表下拉菜单显示">
            <div class="flex flex-row align-center">
              <el-select v-model="formdata.showMenuSort" size="mini" multiple collapse-tags clearable style="width: 60%;">
                <el-option
                  v-for="(item, index) in showMenuSortOptions"
                  :key="index"
                  :value="item"
                  :label="item"
                ></el-option>
              </el-select>
              <el-tooltip class="item" effect="dark" content="可以全局设置已预约列表下拉菜单显示顺序或是显示菜单项" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="报告单审核后多久可打印(分)">
            <div class="flex flex-row align-center">
              <el-input-number v-model="formdata.reportPrintTime" size="mini" :min="0" :max="10000" label="时间分钟"></el-input-number>
              <el-tooltip class="item" effect="dark" content="医生审核报告单后多久可打印,单位分钟" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="!formdata.SOURCEINDEX_TODAY">
          <el-form-item label="查全部数据时的默认时间范围">
            <div class="flex flex-row align-center">
              <el-input-number v-model="formdata.DEFAULTSEARCHDATS" @change="changeDefaultSearchData" size="mini" :min="0" :max="16" label="默认查询时间1~15天"></el-input-number>
              <el-tooltip class="item" effect="dark" content="查询全部数据的时候,所默认查询的时间范围,单位天,建议是在15天之内，不然容易导致接口的查询速度慢" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="!formdata.SOURCEINDEX_TODAY">
          <el-form-item label="查某人时的时间范围配置">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isOpenDefSechSomebodyDays"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="查询某个人已预约数据的时候,所默认查询的时间范围配置开关,单位天" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="!formdata.SOURCEINDEX_TODAY && formdata.isOpenDefSechSomebodyDays">
          <el-form-item label="查某人时的默认时间范围">
            <div class="flex flex-row align-center">
              <el-input-number v-model="formdata.defSechSomebodyDays" @change="changeDefaultSearchSomebodyData" size="mini" :min="0" :max="31" label="默认查询时间1~30天"></el-input-number>
              <el-tooltip class="item" effect="dark" content="查询某个人已预约数据的时候,所默认查询的时间范围,单位天,建议是在30天之内,不然容易导致接口的查询速度慢" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="申请单-存图片">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.saveByPic"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="纸质申请单的存储方式,以base64存于数据库还是以图片存于服务器" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="已预约列表是否显示his类型查询条件">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isShowHisType"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="开启之后已预约列表会显示his类型查询" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="可打印报告单状态">
            <div class="flex flex-row align-center">
              <el-select v-model="formdata.canPrintStatus" size="mini" collapse-tags multiple clearable style="width: 100%;">
                <el-option
                  v-for="(item, index) in checkStatusArr"
                  :key="index"
                  :value="item"
                  :label="item"
                ></el-option>
              </el-select>
              <el-tooltip class="item" effect="dark" content="可打印报告单的检查状态,所选择的才能触发打印" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="报告单审核后多久才可打印">
            <div class="flex flex-row align-center">
              <el-input-number v-model="formdata.printTime" @change="changePrintTimeMm" size="mini" :min="0" :max="60" label="默认0分钟"></el-input-number>
              <el-tooltip class="item" effect="dark" content="报告单经过医生审核后的多长时间后才可打印(单位:分钟)" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="纸质申请单图片压缩比例">
            <div class="flex flex-row align-center">
              <el-input-number v-model="formdata.picRatio" size="mini" :min="0" :max="1" :step="0.1" label="默认比例为1"></el-input-number>
              <el-tooltip class="item" effect="dark" content="纸质申请单拍照后,图片的压缩比例" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <div class="grid_tit" style="margin-top:20px">打印配置</div>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="预约单模板使用院内C1Report模板">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.appointmentLogIsUserC1Report"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="启用门诊退费单打印">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.qutpatientRefundForm"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="!isHiddenPrintSet">
          <el-form-item label="不自动打印号码单患者类型">
            <div class="flex flex-row align-center">
              <el-select v-model="formdata.unPrintAutoPatientSource" size="mini" collapse-tags multiple clearable style="width: 100%;">
                <el-option
                  v-for="(pt, index) in patientSourceOptions"
                  :key="index"
                  :value="pt.label"
                  :label="pt.label"
                ></el-option>
              </el-select>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="批量打印加载时间(毫秒)">
            <div class="flex flex-row align-center">
              <el-input-number v-model="formdata.printLoadingTime" size="mini" :min="10000" :max="1000000" :step="10000" label="默认批量打印时间为120000毫秒"></el-input-number>
              <el-tooltip class="item" effect="dark" content="批量打印的时候,所需要加载的时间" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <div class="grid_tit" style="margin-top:20px">号源页面配置</div>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="机房列表是否使用下拉框">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.roomIsUseSelectOption"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="号源管理页面,机房列表数据使用下拉框展示还是平铺标签展示,该配置在号源管理页面已有存储在本地缓存的开关,可根据不同护士的使用习惯来个性化设置" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="内窥镜的号源显示特殊处理">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isShowUpdate"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="号源查询页面：存在临床预约限制条件的,号源上面的【预】字变成【临】。存在转诊预约限制条件的,号源上面的【预】字变成【转】,其他非临床预约或非转诊预约都还是显示【预】字,就特殊针对临床预约和转诊预约" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="预约来源选择框是否升级Ⅰ">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isCombineSelectBox"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="编辑号源的时候,预约来源选择框从老版本的三个框合并为一个框,简化了逻辑,方便维护(该需求由温州市中心医院提出,并正在使用)" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="预约来源选择框是否升级Ⅱ">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isUseNewSelectBox"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="编辑号源的时候,预约来源选择框与申请单查询页面的预约来源选择框相同(该需求由福鼎市医院提出,并正在使用)" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="是否显示历史预约平均数按钮">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.APPOINTENTTEMPLATERECOMMEND"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="号源模板管理页面是否显示'历史预约平均数'按钮,该功能暂时只能用来查询历史预约平均数,做个参考用" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="自定义班次的时间选择间隔">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.ISUSE_DEFAULTSTEPTIME"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="号源管理页面,编辑号源的时候,所可以选择号源时间的间隔" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="formdata.ISUSE_DEFAULTSTEPTIME">
          <el-form-item label="班次的时间选择间隔(默认:00:30)">
            <div class="flex flex-row align-center">
              <el-input
                v-model="formdata.DEFAULTSTEPTIME"
                placeholder="请填写'00:30'的时间格式"
                size="mini"
                clearable
                autocomplete="off">
                <template slot="append">
                  <el-tooltip class="item" effect="dark" content="举例:00:30代表时间间隔为30分钟,00:01代表时间间隔为1分钟" placement="top-start">
                    <i class="el-icon-question mar-l-3"></i>
                  </el-tooltip>
                </template>
              </el-input>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="不让乱加号部门">
            <div class="flex flex-row align-center">
              <el-select size="mini" v-model="formdata.unAddDepList" multiple clearable collapse-tags style="width: 100%;">
                <el-option
                  v-for="(item, index) in depList"
                  :key="index"
                  :value="item"
                  :label="item"
                ></el-option>
              </el-select>
              <el-tooltip class="item" effect="dark" content="号源管理页面，哪些检查部门不让在非最后一个班次去加号" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="批量加减号源限制条件">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isBatchAddSub"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="号源管理页面,是否显示批量加减号源限制条件按钮" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <div class="grid_tit" style="margin-top:20px">其他页面配置</div>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="批量维护号源比例开关">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.batchUpdateAppoScale"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="预约规则配置页面是否显示批量维护号源比例按钮" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="左侧菜单栏是否关闭自动缩进">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isCloseAutoRetract"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
            </div>
          </el-form-item>
        </el-col>
        <!-- ========================读卡器配置========================= -->
        <el-col :span="24">
          <div class="grid_tit" style="margin-top:20px">读卡器配置</div>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="安装包的文件">
            <div class="flex flex-row align-center">
              <el-input
                v-model="formdata.CARDREADER_LOAD_URL"
                placeholder="安装包的文件名,前面需加 '/'"
                clearable
                autocomplete="off"
                size="mini"
              >
                <template slot="append">
                  <el-tooltip class="item" effect="dark" content="举例:/kycardreader-setup4.3.52.zip" placement="top-start">
                    <i class="el-icon-question mar-l-3"></i>
                  </el-tooltip>
                </template>
              </el-input>
            </div>
          </el-form-item>
        </el-col>
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="applyInfoHospital == 'wenfuer'">
          <el-form-item label="就诊卡对应卡号还是病人ID">
            <div class="flex flex-row align-center">
              <el-select
                v-model="formdata.jskQueryWay"
                filterable
                @change="changeJZK"
                placeholder="请选择"
                size="mini">
                <el-option
                  v-for="item in jzkOptions"
                  :key="item.id"
                  :label="item.label"
                  :value="item.value">
                </el-option>
              </el-select>
              <el-tooltip class="item" effect="dark" content="温附二环境，就诊卡是20位的，对应卡号查询还是病人ID查询？" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col> -->
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="智慧医保凭证地址">
            <div class="flex flex-row align-center">
              <el-input
                v-model="formdata.zhybpzapi"
                placeholder="智慧医保凭证地址"
                clearable
                autocomplete="off"
                size="mini"
              >
                <template slot="append">
                  <el-tooltip class="item" effect="dark" content="刷异地医保的一个地址,超声分诊护士站文件夹DK目录下DeviceReader.json里有这个地址,比如:http://100.72.5.131:8004/localcfc/api/hsecfc/localQrCodeQuery" placement="top-start">
                    <i class="el-icon-question mar-l-3"></i>
                  </el-tooltip>
                </template>
              </el-input>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="医院机构代码">
            <div class="flex flex-row align-center">
              <el-input
                v-model="formdata.orgId"
                placeholder="医院机构代码"
                clearable
                autocomplete="off"
                size="mini"
              >
                <template slot="append">
                  <el-tooltip class="item" effect="dark" content="刷异地医保才会用到的一个机构代码,和医院代码是不一样的,通常比医院代码短一点,比如温附二的是:H33108300201" placement="top-start">
                    <i class="el-icon-question mar-l-3"></i>
                  </el-tooltip>
                </template>
              </el-input>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="驱动类型">
            <div class="flex flex-row align-center">
              <!-- v-model="formdata.driveType" -->
              <el-cascader
                style="width: 230px;"
                :options="driveTypeOption"
                v-model="formdata.driveType"
                placeholder="院区/驱动类型"
                size="mini"
                @change="driveTypeChange"
              >
                <template slot-scope="{ node, data }">
                  <span>{{data.label}}</span>
                  <span v-if="!node.isLeaf"> ({{data.children.length}}) </span>
                </template>
              </el-cascader>
              <el-tooltip class="item" effect="dark" :content="driveTypeContent" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>

        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="门诊卡长度" prop="outpatientCardInfo">
            <div class="flex flex-row align-center">
              <el-input
                v-model="formdata.outpatientCardInfo"
                placeholder="请填写整数"
                clearable
                autocomplete="off"
              >
                <template slot="append">
                  <el-tooltip class="item" effect="dark" content="举例:20,代表刷卡的时候,会自动判断20位的是门诊卡卡号,并自动切换查询条件" placement="top-start">
                    <i class="el-icon-question mar-l-3"></i>
                  </el-tooltip>
                </template>
              </el-input>
            </div>
          </el-form-item>
        </el-col> -->
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="是否有多种品牌的读卡器">
            <div class="flex flex-row align-center">
              <el-switch
                v-model="formdata.isMoreReadCardCheck"
                active-color="#13ce66"
                inactive-color="#ff4949"
                active-text="是"
                inactive-text="否">
              </el-switch>
              <el-tooltip class="item" effect="dark" content="对于福建省的医院,通常有多重品牌的读卡器一起使用,就需要在此设置" placement="top-start">
                <i class="el-icon-question mar-l-10"></i>
              </el-tooltip>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4" v-if="formdata.isMoreReadCardCheck">
          <el-form-item label="多种品牌的读卡器">
            <div class="flex flex-row align-center">
              <el-select
                v-model="formdata.moreReadCardCheckArr"
                filterable
                allow-create
                multiple
                size="mini"
                placeholder="请选择">
                <el-option
                  v-for="item in moreReadCardOptions"
                  :key="item"
                  :label="item"
                  :value="item">
                </el-option>
              </el-select>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="读卡器配置参数">
            <div class="flex flex-row align-center">
              <el-select
                v-model="formdata.kyReaderCardNameArr"
                multiple
                size="mini"
                collapse-tags
                placeholder="请选择">
                <el-option
                  v-for="item in kyCardConfigOptions"
                  :key="item.id"
                  :label="getValue(item.tag) + item.name + getCardTypeDo(item.type)"
                  :value="item.id">
                </el-option>
              </el-select>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="刷医保凭证后的取值字段">
            <div class="flex flex-row align-center">
              <el-input
                v-model="formdata.dzybpzField"
                placeholder="刷医保凭证后的取值字段"
                clearable
                autocomplete="off"
                size="mini"
              >
                <template slot="append">
                  <el-tooltip class="item" effect="dark" content="刷电子医保凭证后通常是取IDNum字段,然后对应的是身份证号;如果要取其他字段,可以在此设置" placement="top-start">
                    <i class="el-icon-question mar-l-3"></i>
                  </el-tooltip>
                </template>
              </el-input>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="刷医保凭证后的查询方式">
            <div class="flex flex-row align-center">
              <el-input
                v-model="formdata.queryWayText"
                placeholder="刷医保凭证后的查询方式"
                clearable
                autocomplete="off"
                size="mini"
              >
                <template slot="append">
                  <el-tooltip class="item" effect="dark" content="刷电子医保凭证后默认是通过身份证号来查询,如果要通过其他方式来查询,可以在此设置" placement="top-start">
                    <i class="el-icon-question mar-l-3"></i>
                  </el-tooltip>
                </template>
              </el-input>
            </div>
          </el-form-item>
        </el-col>
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="刷市民卡后的取值字段">
            <div class="flex flex-row align-center">
              <el-input
                v-model="formdata.smkField"
                placeholder="刷市民卡后的取值字段"
                clearable
                autocomplete="off"
                size="mini"
              >
                <template slot="append">
                  <el-tooltip class="item" effect="dark" content="刷市民卡后通常是取IDNum字段,然后对应的是身份证号;如果要取其他字段,可以在此设置" placement="top-start">
                    <i class="el-icon-question mar-l-3"></i>
                  </el-tooltip>
                </template>
              </el-input>
            </div>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="刷市民卡后的查询方式">
            <div class="flex flex-row align-center">
              <el-input
                v-model="formdata.smkQueryWayText"
                placeholder="刷市民卡后的查询方式"
                clearable
                autocomplete="off"
                size="mini"
              >
                <template slot="append">
                  <el-tooltip class="item" effect="dark" content="刷市民卡后默认是通过身份证号来查询,如果要通过其他方式来查询,可以在此设置" placement="top-start">
                    <i class="el-icon-question mar-l-3"></i>
                  </el-tooltip>
                </template>
              </el-input>
            </div>
          </el-form-item>
        </el-col> -->
        <!-- <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="4">
          <el-form-item label="读卡器按钮是否隐藏">
            <el-switch
              v-model="formdata.isHideReaderCardBtn"
              active-color="#13ce66"
              inactive-color="#ff4949"
              active-text="是"
              inactive-text="否">
            </el-switch>
          </el-form-item>
        </el-col> -->
      </el-row>
    </el-form>
  </div>
</template>

<script>
import { Options, virtualRoomInit } from '@/utils/constant'
import { getListByAreaNameFunc } from '@/api/common'
import { setIsShowTwoList, setIsSetStorageAreaName, getIsShowTwoList, getIsSetStorageAreaName, getLocalMemory, getAreaNameToDriveTypeObj } from '@/utils/utils'
import {
  getDepList
} from '@/api/api.js'
export default {
  data() {
    return {
      depList: [],
      virtualRoomOptions: virtualRoomInit,
      hospitalCode: this.$store.state.user.hospitalCode,
      checkStatusArr: Options.appointmentCheckStatusOptions,
      kyCardConfigOptions: Options.kyCardConfigOptions,
      applyInfoHospital: window.g.applyInfoHospital,
      isHiddenPrintSet: window.g.isNotShowPrintSet,
      driveTypeOption: [],
      driveTypeContent: '',
      moreReadCardOptions: ['易连众', '升腾'],
      formdata: {
        // applyInfoCancelUseDialog: false,
        // smkField: '',
        // smkQueryWayText: '',
        dzybpzField: '',
        queryWayText: '',
        canPrintStatus: ['已审核'], // 什么状态才能打印报告单
        saveByPic: false, // 纸质申请单的存储方式是否以图片存于服务器
        picRatio: 1, // 纸质申请单的压缩比例
        isMoreReadCardCheck: false, // 是否有多种品牌的读卡器
        moreReadCardCheckArr: [],
        printLoadingTime: 120000,
        driveType: [],
        driveTypeArr: [],
        isFilterMerge: false, // 已预约列表筛选条件升级
        isStyleUpdate: false, // 已预约列表按钮等颜色是否升级简化
        exportToExcel: false, // 已预约列表是否支持导出为Excel
        isAddAuthInEdit: false, // 是否给已预约列表的编辑按钮配置权限
        IS_TRIGGER_PATIENTID: false,
        isCloseHisAndConfigLink: false,
        patTypeLink: false, // 患者类型的联动
        isChooseAppointed: false, // 手工登记是否默认选中门诊
        isShowTwoList: false,
        isCloseAutoRefreshOnSaveAppConfig: false,
        isOpenAuthInSetBtn: false,
        printAutoNum: 1,
        applyListRefreshTime: 10,
        isShowApplyListRefresh: false,
        isAddInOutPatient: false,
        isToPrint: false, // 是否打印
        unPrintAutoPatientSource: [], // 不自动打印号码单患者类型
        unSearchAutoPatientSource: [0], // 登记预约不自动请求
        unShowVirtualRoom: [], // 不显示的虚拟机房
        applyDepartmentCodeFilterArr: '', // 根据申请科室代码过滤申请单列表
        eExeDepCodeFilArr: '', // 根据执行科室代码过滤申请单列表
        appointmentLogIsUserC1Report: false, // 预约单模板使用院内C1Report模板
        isShowRememberSelectBtn: false, // 已预约列表是否开启缓存记住上一次的选择
        isHideGreenCheck: false, // 登记预约，手动登记是否隐藏
        isGreenCheckAddAuth: false, // 登记预约，手动登记是否配置权限
        // checkConfigBtnShow: true, // 登记预约，设置按钮是否显示
        depArea: false, // 申请单列表过滤影像区域查询
        areaName: false, // 申请单列表过滤院区查询
        isShowApplyDepart: false, // 申请单是否过滤申请科室
        isShowWardNo: false, // 申请单是否过滤申请病区
        modalityType: false, // 申请单列表过滤设备类型条件
        cancelType: false, // 申请单列表过滤已取消条件
        tijianTotijianhao: false, // 检查预约登记页面的体检是否对应体检号查询
        stestIDMergeOutID: false,
        isShowHisType: false, // 是否开启his类型查询条件
        // tijianShow: false,
        unregistered: false, // 是否默认勾选住院条件下的未登记,温州中心医院需求
        isUnregistered: false, // 是否默认勾选住院条件下的未登记,温州中心医院需求: false
        isBedNoSort: false, // 住院条件下是否根据床号排序
        applyCheckFileSHow: false, // 登记预约附件拍照是否显示
        returned: false, // 住院条件下已退单条件过滤是否开启,
        // CAResultsDateTimeRank: false, // 临床预约预约结果根据预约时间排序
        qutpatientRefundForm: false, // 门诊退费单打印
        roomIsUseSelectOption: false,
        isShowUpdate: false, // [预]字的特殊处理
        mpi: false, // 申请单信息中PID部分医院需要用替换成MPI
        isChangeFeeType: false, // 玉环手工登记添加两癌判断以收费状态
        // patType: false, // 申请单列表过滤患者类型查询
        // patTp: true, // 申请单列表过滤患者类型查询
        // hisFormDateShow: false, // 申请单列表过滤患者开单日期
        // appointedType: false, // 申请单列表过滤已预约条件
        reportPrintTime: 0,
        SOURCEINDEX_TODAY: false, // 默认查询时间是否为今天
        DEFAULTSEARCHDATS: 7, // 已预约列表默认查询时间天数
        isOpenDefSechSomebodyDays: false, // 是否开启默认查询某个人的时间天数
        defSechSomebodyDays: 90, // 默认查询某个人的时间天数
        isLineThrough: false, // 未收费状态数据是否加中间横线
        isClearQueryText: false,
        isShowApplyCheck: false,
        listCloseAutoSearch: false,
        isChooseDeps: false,
        // isShowChiefComplaint: false,
        zhybpzapi: '',
        orgId: '',
        CARDREADER_LOAD_URL: '',
        kyReaderCardNameArr: [],
        isGetHisDeps: false,
        isCombineSelectBox: false,
        isUseNewSelectBox: false,
        // isSelectMoreCheckStatus: false,
        defHisDay: 3650,
        listLimit: 500,
        numSpliceIsFront: false, // 申请单加载条数上限的截取方式，前或后
        hisIsSelectAll: false,
        APPOINTENTTEMPLATERECOMMEND: false,
        batchUpdateAppoScale: false,
        isCloseAutoRetract: false,
        isSetStorageAreaName: false,
        ISUSE_DEFAULTSTEPTIME: false,
        DEFAULTSTEPTIME: '',
        isRequiredItems: false,
        isShowEmergencyTag: false,
        // jskQueryWay: '', // 就诊卡对应卡号还是病人ID
        patTypeToAppointed: false, // 关于是否颜色设置同步his申请单
        showMenuSort: [],
        unAddDepList: [],
        isBatchAddSub: false
      },
      // showMenuSortOptions: ['影像号', '住院号', '访问号', '身份证号', 'PID', '卡号', '门诊号', '申请单号', '登记人', '病人ID'],
      showMenuSortOptions: ['PID', '卡号', '访问号', '影像号', '发票号', '门诊号', '住院号', '病人ID', '身份证号', '申请单号', '登记人', '手机号'],
      // typeOptions: ['boolean', 'number', 'array', 'string'],
      // componentTypeOptions: ['input', 'number', 'switch', 'select'],
      // formList: [
      //   {
      //     label: '申请单列表过滤院区查询',
      //     type: 'boolean',
      //     value: false,
      //     componentType: 'switch',
      //     key: 'depArea'
      //   },
      //   {
      //     label: '申请单列表过滤设备类型条件',
      //     type: 'boolean',
      //     value: false,
      //     componentType: 'switch',
      //     key: 'modalityType'
      //   },
      //   {
      //     label: '申请单列表过滤已取消条件',
      //     type: 'boolean',
      //     value: false,
      //     componentType: 'switch',
      //     key: 'cancelType'
      //   },
      //   {
      //     label: '自动打印号码单次数',
      //     type: 'number',
      //     value: 1,
      //     componentType: 'number',
      //     key: 'printNum'
      //   },
      //   {
      //     label: '运行自动打印号码单患者类型',
      //     type: 'array',
      //     value: [],
      //     componentType: 'select',
      //     key: 'patientSource'
      //   }
      // ],
      patientSourceOptions: Options.patientTypeItemOptions.concat([{ label: '全部', value: 0 }])
    }
  },
  created() {
    this.getAreaNameList()
    this.getDepList()
  },
  mounted() {},
  methods: {
    getDepList() {
      /* 检查部门列表 */
      let params = {
        hospitalCode: this.$store.state.user.hospitalCode,
        depArea: ''
      }
      getDepList(params).then((res) => {
        if (res.code === 10000) {
          this.depList = res.content.list
          console.log('this.depList', this.depList)
        }
      })
    },
    // 获取院区列表
    getAreaNameList() {
      const params = {
        HospitalCode: this.hospitalCode
      }
      getListByAreaNameFunc(params).then(res => {
        console.log('areaNameOptions', res)
        let driveTypeOption = []
        let item = {}
        const children = [{
          value: 0,
          label: 0
        }, {
          value: 1,
          label: 1
        }]
        for (let i = 0; i < res.length; i++) {
          item = {
            value: res[i],
            label: res[i],
            children
          }
          driveTypeOption.push(item)
        }
        this.driveTypeOption = driveTypeOption
        console.log('driveTypeOption', this.driveTypeOption)
      })
    },
    driveTypeChange(e) {
      console.log('driveTypeChange', e)
      if (this.formdata.driveTypeArr.length) {
        let driveTypeArr = this.formdata.driveTypeArr
        if (driveTypeArr.length) {
          let findIndex = driveTypeArr.findIndex(item => item[0] == e[0])
          if (findIndex > -1) {
            // 若是已有的配置，则替换值
            driveTypeArr[findIndex][1] = e[1]
          } else {
            // 若是新的配置，则直接添加
            driveTypeArr.push(e)
          }
        } else {
          driveTypeArr.push(e)
        }
        this.formdata.driveTypeArr = driveTypeArr
        this.setDriveTypeContent()
      }
    },
    // changeJZK(value) {
    //   console.log('value', value)
    //   this.formdata.jskQueryWay = value
    // },
    getCardType(value) {
      if (typeof value == 'object') {
        return `${value[0]}`
      } else {
        return `${value}`
      }
    },
    getValue(value) {
      if (value) {
        return value
      } else {
        return ''
      }
    },
    getCardTypeDo(value) {
      return `(${value})`
    },
    changeIsShowTwoList(data) {
      console.log('changeIsShowTwoList=>data', data)
      setIsShowTwoList(data)
    },
    changeIsSetStorageAreaName(data) {
      console.log('changeIsSetStorageAreaName=>data', data)
      setIsSetStorageAreaName(data)
    },
    changePrintTimeMm(value) {
      console.log('value', value)
      if (this.formdata.printTime < 0) {
        this.$message.warning('该不可小于0分钟')
        this.formdata.printTime = 0
        this.$forceUpdate()
      }
      if (this.formdata.printTime > 60) {
        this.$message.warning('从性能上考虑，该时间不可大于60分钟')
        this.$nextTick(() => {
          this.formdata.printTime = 60
          this.$forceUpdate()
        }, 200)
      }
    },
    changeDefaultSearchData(value) {
      console.log('value', value)
      if (this.formdata.DEFAULTSEARCHDATS < 1) {
        this.$message.warning('已预约列表查询全部数据的时间范围不能小于1天')
        this.formdata.DEFAULTSEARCHDATS = 1
        this.$forceUpdate()
      }
      if (this.formdata.DEFAULTSEARCHDATS > 15) {
        this.$message.warning('从性能上考虑，已预约列表查询全部数据的时间范围不能大于15天')
        this.$nextTick(() => {
          this.formdata.DEFAULTSEARCHDATS = 15
          this.$forceUpdate()
        }, 200)
      }
    },
    changeDefaultSearchHisData(value) {
      console.log('value', value)
      if (this.formdata.defHisDay < 1) {
        this.$message.warning('申请单列表查询某个人时候的默认时间范围不能小于1天')
        this.formdata.defSechSomebodyDays = 1
        this.$forceUpdate()
      }
      if (this.formdata.defHisDay > 3650) {
        this.$message.warning('申请单列表查询某个人时候的默认时间范围不能大于3650天')
        this.formdata.defHisDay = 3650
        this.$forceUpdate()
      }
    },
    changeDefaultSearchSomebodyData(value) {
      console.log('value', value)
      if (this.formdata.defSechSomebodyDays < 1) {
        this.$message.warning('已预约列表查询某个人时候的默认时间范围不能小于1天')
        this.formdata.defSechSomebodyDays = 1
        this.$forceUpdate()
      }
      if (this.formdata.defSechSomebodyDays > 30) {
        this.$message.warning('从性能上考虑，已预约列表查询某个人时候的默认时间范围不能大于30天')
        this.formdata.defSechSomebodyDays = 30
        this.$forceUpdate()
      }
    },
    changeRefreshTime(value) {
      console.log('value', value)
      if (this.formdata.applyListRefreshTime < 10) {
        this.$message.warning('时时刷新时间间隔不能小于10秒')
        this.formdata.applyListRefreshTime = 10
        this.$forceUpdate()
      }
      if (this.formdata.applyListRefreshTime > 60) {
        this.$message.warning('时时刷新时间间隔不能大于60秒')
        this.formdata.applyListRefreshTime = 60
        this.$forceUpdate()
      }
    },
    setDriveTypeContent() {
      let content = ''
      if (this.formdata.driveTypeArr.length) {
        this.formdata.driveTypeArr.forEach(item => {
          content += item[0] + '=>' + item[1] + ';'
        })
        this.driveTypeContent = `可配置多院区的读卡器市民卡驱动类型,默认为0,当院区A市民卡可以刷，B却刷不了的时候，请把B院区的市民卡驱动设置为1。当前所配置的市民卡多院区驱动为：${content}`
        console.log('this.driveTypeContent', this.driveTypeContent)
      }
    },
    setData(baseConfig) {
      this.formdata = Object.assign(this.formdata, baseConfig)
      this.formdata.isShowTwoList = getIsShowTwoList()
      this.formdata.isSetStorageAreaName = getIsSetStorageAreaName()
      console.log('setData=>this.formdata', this.formdata)
      setTimeout(() => {
        this.setDriveTypeContent()
        const localSetMemory = getLocalMemory() || ''
        if (localSetMemory && localSetMemory.areaName) {
          this.formdata.driveType = getAreaNameToDriveTypeObj(localSetMemory.areaName, this.formdata.driveTypeArr)
        }
      }, 200)
    },
    getData() {
      return JSON.parse(JSON.stringify(this.formdata))
    }
  }
}
</script>

<style lang="scss" scoped>
.grid_tit{
  padding: 2px 10px;
  margin: 10px 0;
  font-weight: bold;
  border-left: solid 5px #2acbfc;
  font-size: 17px;
}
/deep/ .el-form-item__label{
  padding: 0;
  line-height: 36px;
}
/deep/ .el-input-number .el-input__inner{
  text-align: left;
}
.base_config_form{
  height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 100px;
  /deep/ .el-form-item{
      margin-bottom: 7px;
  }
}
/deep/ .el-form-item__content{
  line-height: 0px !important;
}
/deep/ label{
  font-weight: 600;
}
</style>
